package com.kingyun.gpsinspection.purificationservice.facade.service;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.DutyRecords;
import com.kingyun.gpsinspection.purificationservice.facade.model.DutyRecordsVo;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;

/**
 * Created by jiangjx on 2017/10/25.
 */
public interface DutyRecordsService {

    /**
     * 查询列表数据
     *
     * @param dutyRecordsVo
     * @return
     */
    JSONObject queryTableInfo(DutyRecordsVo dutyRecordsVo);

    /**
     * 保存干部值班记录
     *
     * @param dutyRecords
     * @param logginUser
     * @return
     */
    Integer saveInfo(DutyRecords dutyRecords, EmployeeVo logginUser, String lhcxRadio, String riskRadio);

    /**
     * 修改干部值班信息
     *
     * @param dutyRecords
     */
    Integer updateInfo(DutyRecords dutyRecords, String lhcxRadio, String pageType, EmployeeVo employeeVo, String riskRadio);

    /**
     * 删除干部值班信息
     *
     * @param id
     * @return
     */
    Integer delInfo(String id);

    /**
     * 根据id查询值班信息
     *
     * @param id
     */
    DutyRecords queryInfoById(String id);

    /**
     * 保存多条信息
     *
     * @param dutyItems
     */
    int saveListInfo(String dutyItems, EmployeeVo employeeVo) throws Exception;
}
